<% flashed_errors(:configuration) %>

<% form_for(:configuration, :url => project_stage_stage_configuration_path(@project, @stage, @configuration), :html => { :method => :put }) do |f| %>
  
  <%= render(:partial => 'project_configurations/form')%>
  <br/>

  <%= link_to 'Back to stage', project_stage_path(@project, @stage), :class => 'arrow_link ontheright', :style => 'margin-right: 330px' %>

  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<% content_for(:breadcrumb) do %>
  <% breadcrumb_box do %>
    <%= link_to "Back to stage", project_stage_path(current_project, current_stage), :style => "float:right", :class => "arrow_link" %>
    <%= link_to "Projects", projects_path %> &gt; 
    Project <%= link_to current_project.name, project_path(current_project) %> &gt;  
    Stage <%= link_to current_stage.name, project_stage_path(current_project, current_stage) %> &gt; 
    Edit
  <% end %>
<% end %>

<% content_for(:page_title) do %>
  <% @page_title = "Edit configuration of stage #{h(current_stage.name)}" %>
  <h2>Edit configuration</h2>
<% end %>
